package com.example.mykotlin.model.dto

import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.Size

@Schema(name = "InsertRoleUsersDTO", title = "给角色添加多个用户")
data class InsertRoleUsersDTO(
    @Schema(title = "角色的唯一标识符")
    @field:Size(max = 62, message = "长度不能超过64")
    @field:NotBlank(message = "不能为空")
    var roleId: String? = null,

    @Schema(title = "需要增加的用户主键列表")
    var addUserList: MutableSet<Long>? = null,

    @Schema(title = "需要移除的用户主键列表")
    var removeUserList: MutableSet<Long>? = null,
)